import os

import requests

url = "https://cdn.kuaidi100.com/js/page/sz/query_v5.js?version=201805251700"

c = requests.get(url).content

a = c.decode('utf8', errors="strict")
print(a)

f = open('test1.js', mode='w')
lines = a.splitlines()

for l in lines:
    print(l)
    f.write(l + "\n")
f.close()
